<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
     <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
     
<script>
$(function(){
	$("#sendMessage").popupWindow({	  
		windowURL:"${initParam.root}member/sendMessageForm.do?receiveMemberId=${requestScope.msvo.sendMemberId}",	
		windowName:"sendMessageWindow",
		width:400,
		height:300		
	});//popup
})//ready
</script>

<table border='1' >
		<tr>
			<td>To : ${requestScope.msvo.receiveMemberId } </td>		
			<td >From :${requestScope.msvo.sendMemberId }</td>		
				 <c:choose>
		 	 <c:when test="${vo.readCheck==0}">
			 	<td class="name">안읽음</td>	
			 </c:when>
			 <c:otherwise>
			 		<td class="name">읽음</td>	
			 </c:otherwise>
		 </c:choose>
	
	  </tr>
	  <tr>
	  	<td colspan="3">Title <input type="text" id="messageTitle" name="messageTitle" width="50" readonly value="${requestScope.msvo.messageTitle}"></td>
	  </tr>
	    <tr> 
	  	<td>Content</td><td colspan="2"><pre> <textarea rows="10" cols="40" name="messageContent" id="messageContent" readonly >${requestScope.msvo.messageContent}</textarea></pre></td>
	  </tr>
	    <tr>
	    <c:if test="${param.flag=='receive'}">
	  	<td colspan="3"><input type="button" value="답장" name="sendMessage" id="sendMessage"></td>
	  	</c:if>
	  </tr>
		</table>